<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <title>我的vip</title>
  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <meta name="apple-mobile-web-app-capable" content="no" />
  <meta name="format-detection" content="telephone=no">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/base.css">
  <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/personalCenter.css">
</head>

<body>
<%@ include file="/WEB-INF/jsp/public.jsp"%>
  <div class="rel f0">
    <img src="${pageContext.request.contextPath}/static/images/material_set_01.png" width="100%">
    <div class="vip__panel">  
      <a class="user__headportrait" href="${pageContext.request.contextPath}/user">
      <c:choose>
          	<c:when test="${empty requestScope.user.imageAddress}">
          	<img id="base64Image" src="${pageContext.request.contextPath}/static/images/icon_default_03.jpg" alt="">
          	</c:when>
          	<c:otherwise>
          	<img id="base64Image" src="${requestScope.user.imageAddress}"  onerror="this.src='${pageContext.request.contextPath}/static/images/icon_default_03.jpg'" alt="">
          	
          	</c:otherwise>
          </c:choose> 
      </a>
      <p class="user__name" >${requestScope.user.petName }
      <input type="hidden" value="${requestScope.user.id }"  />
      <span id="vipimg"></span>
       </p>
    	
    </div>
  </div>
  <div class="floor">
    <div class="vip__nav">
      <a class="vip__nav_item" href="${pageContext.request.contextPath}/user/myvip/myfriend">
        <div> <span class="icon_vip_01"></span></div>
        <p class="vip__nav_txt">我的好友</p>
      </a>
        <a class="vip__nav_item" href="${pageContext.request.contextPath}/user/myvip/bonus?id=${requestScope.user.id}">
        <div> <span class="icon_vip_02"></span></div>
        <p class="vip__nav_txt">奖金明细</p>
      </a>
<%--       <a class="vip__nav_item" href="${pageContext.request.contextPath}/user/myvip/cashback" id="my-cashback">
        <div> <span class="icon_vip_08"></span></div>
        <p class="vip__nav_txt">我的返现</p>
      </a> --%>
     <!--  <a class="vip__nav_item" id="invite_friend" href="javascript:;" data-clipboard-text="">
        <div> <span class="icon_vip_03"></span></div>
        <p class="vip__nav_txt">邀请好友</p>
      </a> -->
      <a class="vip__nav_item" href="#" id ="imgcode">
        <div> <span class="icon_vip_04"></span></div>
        <p class="vip__nav_txt" id="two_dimension_code">我的二维码</p>
        <input type="hidden" id="vipcode" value="${sessionScope.vipcode}"/>
        <input type="hidden" id="domain" value="${requestScope.domain}"/>
      </a>
<%--       <a class="vip__nav_item" href="${pageContext.request.contextPath}/user/myvip/withdraw?id=${requestScope.user.id }">
        <div> <span class="icon_vip_05"></span></div>
        <p class="vip__nav_txt">提现</p>
      </a> --%>
      <a class="vip__nav_item" href="${pageContext.request.contextPath}/user/myvip/toupgradevip" id="vipupdate">
      <input type="hidden" value="${requestScope.user.level } " id="input"  />
        
      </a>
<!--       <a class="vip__nav_item" href="javaScript:;" style="background-color:#E5E5E5;">
        <div> <span class="icon_vip_07"></span></div>
        <p class="vip__nav_txt">实名认证(暂未开通)</p>
      </a> -->
    </div>
  </div>
  <script src="${pageContext.request.contextPath}/static/js/lib/jquery/jquery.min.js"></script>
  <script src="${pageContext.request.contextPath}/static/js/wap/main-my-vip.js"></script>
  <script src="${pageContext.request.contextPath}/static/js/lib/layer/layer.js"></script>
   <script src="${pageContext.request.contextPath}/static/js/lib/menu.js"></script>
   <script src="${pageContext.request.contextPath}/static/js/lib/clipboard.min.js"></script>

</body>

</html>

